package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CheckStandardMapper;
import com.ruoyi.system.domain.CheckStandard;
import com.ruoyi.system.service.ICheckStandardService;

/**
 * 检验标准Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-02
 */
@Service
public class CheckStandardServiceImpl implements ICheckStandardService 
{
    @Autowired
    private CheckStandardMapper checkStandardMapper;

    /**
     * 查询检验标准
     * 
     * @param id 检验标准主键
     * @return 检验标准
     */
    @Override
    public CheckStandard selectCheckStandardById(Long id)
    {
        return checkStandardMapper.selectCheckStandardById(id);
    }

    /**
     * 查询检验标准列表
     * 
     * @param checkStandard 检验标准
     * @return 检验标准
     */
    @Override
    public List<CheckStandard> selectCheckStandardList(CheckStandard checkStandard)
    {
        return checkStandardMapper.selectCheckStandardList(checkStandard);
    }

    /**
     * 新增检验标准
     * 
     * @param checkStandard 检验标准
     * @return 结果
     */
    @Override
    public int insertCheckStandard(CheckStandard checkStandard)
    {
        return checkStandardMapper.insertCheckStandard(checkStandard);
    }

    /**
     * 修改检验标准
     * 
     * @param checkStandard 检验标准
     * @return 结果
     */
    @Override
    public int updateCheckStandard(CheckStandard checkStandard)
    {
        return checkStandardMapper.updateCheckStandard(checkStandard);
    }

    /**
     * 批量删除检验标准
     * 
     * @param ids 需要删除的检验标准主键
     * @return 结果
     */
    @Override
    public int deleteCheckStandardByIds(Long[] ids)
    {
        return checkStandardMapper.deleteCheckStandardByIds(ids);
    }

    /**
     * 删除检验标准信息
     * 
     * @param id 检验标准主键
     * @return 结果
     */
    @Override
    public int deleteCheckStandardById(Long id)
    {
        return checkStandardMapper.deleteCheckStandardById(id);
    }
}
